﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using BLL;

public partial class rxt_cpgl_Delete : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int id = int.Parse(Request.QueryString["id"]);

        CpglBLL bll = new CpglBLL();

        if (bll.Delete(id))
            ClientScript.RegisterClientScriptBlock(GetType(), "save", "alert('删除成功');document.location='rxtCpgl.aspx'", true);
        else
            ClientScript.RegisterClientScriptBlock(GetType(), "save", "alert('删除失败,请重试');", true);
    }
}